<template>
  <div class="main-box">
    <div class="page-head">
      <PageHeader />
    </div>
    <div class="collection-form-box">
      <div class="pro-collection-title">回款信息录入</div>
      <div class="head-box">
        <div class="identifier-box"></div>
        <div>回款信息</div>
      </div>
      <div class="form-box">
        <div class="left-box">
          <div class="collection-title">
            <div>项目编号：</div>
            <div>回款日期：</div>
            <div>回款金额：</div>
          </div>
          <div class="collection-input">
            <div><input type="text" /></div>
            <div>
              <el-date-picker
                v-model="collDate"
                type="date"
                placeholder="选择日期"
              >
              </el-date-picker>
            </div>
            <div><input type="text" /></div>
          </div>
        </div>
        <div class="right-box">
          <div class="collection-title">
            <div>预计下次回款日期：</div>
            <div>预计下次回款金额：</div>
          </div>
          <div class="collection-input">
            <div>
              <el-date-picker
                v-model="nextDate"
                type="date"
                placeholder="选择日期"
              >
              </el-date-picker>
            </div>
            <div><input type="text" /></div>
          </div>
        </div>
      </div>
      <div class="sub-btn-box" @click="subPrjectData">提交</div>
    </div>
  </div>
</template>

<script>
import PageHeader from "@/components/PageHeader.vue";
export default {
  data() {
    return {
      collDate: "",
      nextDate: "",
    };
  },
  components: { PageHeader },
  methods: {
    // 提交表单
    subPrjectData() {
      console.log("提交表单------>");
    },
  },
};
</script>

<style lang="scss" scoped>
.main-box {
  background: #f3f6ff;
  text-align: center;

  .collection-form-box {
    /* border: 1px solid red; */
    width: 80%;
    margin-left: 10%;
    height: 87vh;

    .pro-collection-title {
      /* border: 1px solid #dddcdc; */
      font-weight: bold;
      height: 40px;
      line-height: 40px;
      font-size: 24px;
    }

    .head-box {
      border-bottom: 1px solid #dddcdc;
      height: 30px;
      line-height: 30px;
      text-align: start;
      font-size: 18px;
      margin-top: 10px;
      margin-bottom: 10px;
      margin-left: 20px;
      display: flex;
      align-items: center;

      .identifier-box {
        height: 18px;
        width: 5px;
        margin-right: 6px;
        background: #106799;
      }
    }

    .form-box {
      /* border: 1px solid blue; */
      padding-left: 5%;
      display: flex;

      .left-box,
      .right-box {
        /* border: 1px solid blue; */
        display: flex;
      }

      .left-box {
        width: 40%;
        > .collection-title {
          width: 20%;
          /* border: 1px solid green; */

          > div {
            /* border: 1px solid green; */
            height: 30px;
            width: 100%;
            text-align: end;
            margin: 10px 0;
            line-height: 30px;
          }
        }

        .collection-input {
          > div {
            /* border: 1px solid green; */
            height: 30px;
            width: 100%;
            text-align: end;
            margin: 10px 0;
            line-height: 30px;

            > input {
              height: 25px;
              width: 96%;
            }

            .el-date-editor {
              width: 100%;
            }
          }
        }
      }

      .right-box {
        width: 50%;
        > .collection-title {
          width: 27%;
          /* border: 1px solid green; */

          > div {
            /* border: 1px solid green; */
            height: 30px;
            width: 100%;
            text-align: end;
            margin: 10px 0;
            line-height: 30px;
          }
        }

        .collection-input {
          > div {
            /* border: 1px solid green; */
            height: 30px;
            width: 100%;
            text-align: end;
            margin: 10px 0;
            line-height: 30px;

            > input {
              height: 25px;
              width: 96%;
            }

            .el-date-editor {
              width: 100%;
            }
          }
        }
      }
    }

    .sub-btn-box {
      border: 1px solid #c7c4c4;
      width: 100px;
      height: 32px;
      line-height: 30px;
      font-size: 20px;
      margin: 8% 0 0 86%;
    }

    .sub-btn-box:hover {
      cursor: pointer;
      background: rgba($color: #f5f0f0, $alpha: 0.5);
    }
  }
}
</style>